import request from '@/utils/request'

// 查询日常检查列表
export function listInspections(query) {
  return request({
    url: '/mag/inspections/list',
    method: 'get',
    params: query
  })
}

// 查询日常检查详细
export function getInspections(id) {
  return request({
    url: '/mag/inspections/' + id,
    method: 'get'
  })
}

// 新增日常检查
export function addInspections(data) {
  return request({
    url: '/mag/inspections',
    method: 'post',
    data: data
  })
}

// 修改日常检查
export function updateInspections(data) {
  return request({
    url: '/mag/inspections',
    method: 'put',
    data: data
  })
}

// 删除日常检查
export function delInspections(id) {
  return request({
    url: '/mag/inspections/' + id,
    method: 'delete'
  })
}
